// <copyright file="SyndicationActionResult.cs" company="Clever Software">
// Copyright (c) 2013, 2014 All Right Reserved, http://www.cleversoftware.by
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Clever Software</author>
// <email>info@cleversoftware.by</email>
// <date>2014-02-04</date> 
// <summary>CleverCMS source code</summary>

namespace CleverCMS.Core.Web.ActionResults
{
    //using System.ServiceModel.Syndication;
    //using System.Web.Mvc;
    //using System.Xml;

    //public class SyndicationActionResult : ActionResult
    //{
    //    private readonly SyndicationFeedFormatter formatter;

    //    public SyndicationActionResult(SyndicationFeedFormatter formatter)
    //    {
    //        this.formatter = formatter;
    //    }

    //    public override void ExecuteResult(ControllerContext context)
    //    {
    //        context.HttpContext.Response.ContentType = "application/rss+xml";

    //        using (XmlWriter writer = XmlWriter.Create(context.HttpContext.Response.Output))
    //        {
    //            if (writer != null)
    //                this.formatter.WriteTo(writer);
    //        }
    //    }
    //}
}